package com.xiangge.zuoye.Demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 14:42
 * @description
 */
public class Test {
    public static void main(String[] args) {
        //普通员工
        Employee employee = new Employee(1,"A某",24,5000);
        employee.getInfo();
        //程序员
        Progeammer.bcyy = "java";//默认java
        Progeammer progeammer = new Progeammer();
        progeammer.setId(2);
        progeammer.setName("B某");
        progeammer.setAge(25);
        progeammer.setSalary(15000);
        progeammer.getInfo();
        //设计师
        Designer designer = new Designer(1000);
        designer.setId(3);
        designer.setName("C某");
        designer.setAge(26);
        designer.setSalary(17000);
        designer.getInfo();
        //架构师
        Architect architect = new Architect(2000,5);
        architect.setId(4);
        architect.setName("D某");
        architect.setAge(27);
        architect.setSalary(19000);
        architect.getInfo();

    }
}
